<?php
/**
 * $Id: default.php 10571 2008-07-21 01:27:35Z pasamio $
 */
defined( '_JEXEC' ) or die( 'Restricted access' );
$baseurl = JURI::base();
$product_image_url = $baseurl.'/images/products';
$theme_url = $baseurl.'/templates/cpj/';
?>
<div id="mainContainner">
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">    
	<tr>
		<td width="10"></td>
    	<td width="56" valign="top"><img src="<?php echo $theme_url ?>images/cart.jpg"/></td>
		<td class="componentheading"><?php echo JText::_('your shopping cart') ?></td>
	</tr>    
	<tr><td colspan="3"> </td></tr>
</table>
<?php if(!empty($this->items) && count($this->items) > 0): ?>
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="bg_order_detail">
	<tr>
		<td style="padding-left: 0px;">
			<table width="100%" cellspacing="1" cellpadding="4">
				<tr class="header_show_cart">
					<th nowrap="nowrap" width="1%" align="center"><?php echo JText::_('Image') ?></th>
					<td><?php echo JText::_('Description') ?></td>
					<th align="center"><?php echo JText::_('Price') ?></th>
					<th nowrap="nowrap" width="1%" align="center"><?php echo JText::_('Quantity') ?></th>
					<th align="center"><?php echo JText::_('Total') ?></th>
					<th nowrap="nowrap" align="center"><?php echo JText::_('Action') ?></th>
				</tr>
				<?php foreach($this->items as $index => $item): ?>
				<?php $this->setProduct($index) ?>
				<?php echo $this->loadTemplate('product'); ?>
				<?php endforeach; ?>
			</table>
		</td>
	</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="4" border="0" class="tbl_order_price">
	<tr>
		<td align="right" colspan="5"><strong><?php echo JText::_('Cart total') ?></strong>:</td>
		<td align="right" class="price" colspan="3" id="cart_total"><?php echo ProductHelper::renderPrice($this->_total) ?></td>
		<td width="100"></td>
	</tr>
</table>
<div id="checkout_action">
<a class="Shopping" href="javascript:void(0);" onclick="history.back(1);">[<?php echo JText::_('Continue shopping') ?>]</a><a class="Checkout" href="index.php?option=com_products&task=checkout">[<?php echo JText::_('Checkout') ?>]</a>
</div>
<?php else: ?>
<?php echo JText::_('No items') ?>
<?php endif; ?>
</div>
